public class ZhaiZhiJie7
{
    public static void main(String[] args)
    {
        Account a = new Account("zhangsan", 100000);
        System.out.println("当前余额为：" + a.getBal());
    }
}

class Account
{
    private String name;
    private int bal;
    public Account()
    {

    }

    public Account(String name, int bal) {
        this.name = name;
        this.bal = bal;
    }

    public int getBal() {
        return bal;
    }
}